<div id="navAlpha">
	<div class="title">
	<p><img src="../imgs/logo.png" alt="Pomby"><br /></div><b>Pomby Knowledgebase</b></p>
	<p><u>Release Notes / Pre-Check</u><br />
{if $pass == true}
	<a href="step1.php">Step 1 - Database</a><br />
{else}
	<i>Step 1 - Database</i><br />
{/if}
	<i>Step 2 - KB Details</i><br />
	<i>Step 3 - Plugins</i><br />
	<i>Step 4 - Admin Auth</i><br />
	<i>Step 5 - Write Config</i><br />
	<br /></p>
</div>
<div class="content">
{foreach from=$mvErrors item=i}
	<div class="error"><h3>Error: {$i.title}</h3>{$i.text}<div>{$i.time}</div></div>
{/foreach}

<table style="width: 100%;">
	<tr>
		<th style="width: 33%;"><h1>Required Settings</h1></th>
		<th style="width: 33%;"><h1>Recommended Settings</h1></th>
		<th style="width: 33%;"><h1>Information</h1></th>
	</tr>
	<tr>
		<td style="vertical-align: top;'">
			<h3>Permissions</h3>

			{if $perm_pass1 == true}
			<p>Attachment Folder Writable: <span style="font-weight: bold; color: green;">Yes</span></p>
			{else}
			<p>Attachment Folder Writable: <span style="font-weight: bold; color: red;">No</span></p>
			<p>To correct this problem run the following command:</p>
			<pre># cd /path-to-pomby/
# chmod 600 ./attach</pre>
			{/if}

			{if $perm_pass2 == true}
			<p>Config Folder Writable: <span style="font-weight: bold; color: green;">Yes</span></p>
			{else}
			<p>Config Folder Writable: <span style="font-weight: bold; color: red;">No</span></p>
			<p>To correct this problem run the following command:</p>
			<pre># cd /path-to-pomby/
# chmod 600 ./config</pre>
			{/if}

			{if $perm_pass3 == true}
			<p>Smarty Cache Folder Writable: <span style="font-weight: bold; color: green;">Yes</span></p>
			{else}
			<p>Smarty Cache Folder Writable: <span style="font-weight: bold; color: red;">No</span></p>
			<p>To correct this problem run the following command:</p>
			<pre># cd /path-to-pomby/cache/smarty/
# chmod 600 ./cache</pre>
			{/if}

			{if $perm_pass4 == true}
			<p>Smarty Compile Folder Writable: <span style="font-weight: bold; color: green;">Yes</span></p>
			{else}
			<p>Smarty Compile Folder Writable: <span style="font-weight: bold; color: red;">No</span></p>
			<p>To correct this problem run the following command:</p>
			<pre># cd /path-to-pomby/cache/smarty/
# chmod 600 ./compile</pre>
			{/if}

			<h3>PDO</h3>
			{if $pdo_pass == true}
			<p>PDO Available: <span style="font-weight: bold; color: green;">Yes</span></p>
			{else}
			<p>PDO Available: <span style="font-weight: bold; color: red;">No</span></p>
			<p>This project uses PDO for it's database connections. PDO Provides an interface with MySQL to prevent SQL injection and to improve database speed using prepared statements.</p>
			<p>To install PDO see the <a href="http://php.net/manual/en/book.pdo.php">PHP documents on the subject</a></p>
			{/if}
		</td>

		<td style="vertical-align: top;'">
			<h3>APC</h3>
			{if $apc_pass == true}
			<p>APC Available: <span style="font-weight: bold; color: green;">Yes</span></p>
			{else}
			<p>APC Available: <span style="font-weight: bold; color: red;">No</span></p>
			<p>This project takes advantage of APC where available to speed up common queries and to cache popular articles.
				It also provides caching of PHP scripts in memory to speed up page execution.</p>
			<p>To install APC see the <a href="http://php.net/manual/en/book.apc.php">PHP documents on the subject</a></p>
			{/if}

			<h3>Magic Quotes</h3>
			{if $magic_pass == true}
			<p>Magic Quotes: <span style="font-weight: bold; color: green;">No</span></p>
			<p>Your <a href="http://php.net/manual/en/security.magicquotes.php">Magic Quotes</a> is off or non-existent and should cause no problems with Pomby.</p>
			{else}
			<p>Magic Quotes: <span style="font-weight: bold; color: red;">Yes</span></p>
			<p>It is suggested that if possible you turn off <a href="http://php.net/manual/en/security.magicquotes.php">Magic Quotes</a>.
				They can cause problems with database entry and has been deprecated in PHP 5.3.
				Pomby fully takes into account magic quotes and corrects the issue however you may see some strange behaviour.
				If you do see any strange behaviour please submit an issue to Pomby and we will do our best to fix it.</p>
			{/if}
		</td>

		<td style="vertical-align: top;'">
			<p>PHP Version: <b>{phpversion()}</b></p>
			<p>Server OS: <b>{$server_os}</b></p>
			<p>Error Reporting: <b>{ini_get('error_reporting')}</b></p>
			<p>Max. Attachment Size: <b>{ini_get('post_max_size')}</b></p>
			<p>Smarty Version: <b>{$smarty.version}</b></p>
		</td>
	</tr>
</table>

{if $pass == true}
<a href="step1.php">Begin Install Step 1 - Database &gt;&gt;&gt;</a>
{/if}
</div>